package com.lemon.domain;

import java.util.Date;
import java.util.List;

public class Menu {

	private Long id;
	// 上级菜单ID
	private Long superiorMenuId;
	// 上级菜单
	private Menu superiorMenu;
	// 子菜单集合
	private List<Menu> submenuList;
	// 菜单名称
	private String name;
	// 路径
	private String url;
	// 创建时间
	private Date createTime;
	// 修改时间
	private Date updateTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSuperiorMenuId() {
		return superiorMenuId;
	}

	public void setSuperiorMenuId(Long superiorMenuId) {
		this.superiorMenuId = superiorMenuId;
	}

	public Menu getSuperiorMenu() {
		return superiorMenu;
	}

	public void setSuperiorMenu(Menu superiorMenu) {
		this.superiorMenu = superiorMenu;
	}

	public List<Menu> getSubmenuList() {
		return submenuList;
	}

	public void setSubmenuList(List<Menu> submenuList) {
		this.submenuList = submenuList;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "Menu [id=" + id + ", superiorMenuId=" + superiorMenuId + ", superiorMenu=" + superiorMenu
				+ ", submenuList=" + submenuList + ", name=" + name + ", url=" + url + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + "]";
	}

}
